home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 22 / Commodore_Free_Issue_22_2008_Commodore_Computer_Club.d64 / t.music edit 4.2 < prev    next >
Text File  |  2023-02-26  |  9KB  |  458 lines

  1. u
  2.  
  3. TND Creating music with DMC
  4. http://www.redesign.sk/tnd64/
  5.  music_scene.html
  6.  
  7. Created by Richard Bayliss
  8. with Special thanks to Rio/Rattenrudel
  9.  
  10. Final instalment 4.2
  11.  
  12.          Continued from 4.1
  13.  
  14. Okay, so not much of a difference to
  15. this diagram. All I've done here was
  16. added '28' to 'FX'. Basically using
  17. '2' or 'A' underneath 'F' turns on the
  18. filter and the number under 'X' either
  19. emulates as a drum, or just holds your
  20. note down, until a GATE is set (GATES
  21. will be looked at later on in this
  22. feature).
  23.  
  24. Okay, now press the BACK ARROW (or
  25. CTRL in DMC7) yet again to enter the
  26. flashing bar menu, and then highlight
  27. the Filter Editor, using cursor keys,
  28. followed by RETURN to activate that
  29. editor.
  30.  
  31. The diagram below shows you what the
  32. filter editor looks like.
  33.  
  34. Now try the example above. There, now
  35. we have a filter ready for the sounds.
  36. Press SPACE to test your sound. There
  37. you are, what you think? Quite a nice
  38. sound eh? Press BACK ARROW (or CTRL in
  39. DMC7) to move back to the main menu.
  40.  
  41. Anyway, lets' go and create a new
  42. instrument, using the sound editor.
  43. Enter as follows:
  44.  
  45. ADSR L P SPEEDS L F V1 V2 ## FX
  46. 00AE 0 0 000000 0 0 00 00 02 08
  47.  
  48. Move your cursor to ## and then press
  49. SHIFT & RETURN. You're able to do this
  50. with any sound you decide to create,
  51. as well as change the ## values. The
  52. ## Values is where your put your sound
  53. type. Say for example we use ##66,
  54. this indicates the DMC player to jump
  55. along to section ##66 in the sound
  56. data tables.
  57.  
  58. Anyway, at ##02 we want to do a
  59. C64-style minor chord, so now copy as
  60. follows in the data tables:
  61.  
  62. 02 21 00
  63. 03 21 03
  64. 04 21 07
  65. 05 21 0C
  66. 06 94 00 ;94 loop four sounds.
  67.  
  68. The last line controls the octaves.
  69. #$03 is octave 3, #$07 is octave 07,
  70. and #$0C is octave 12. #$94 repeats
  71. the four octaves for a while (depends
  72. on the attack/decay used).
  73.  
  74. Now do the same for the major chords
  75. (remember copy & paste to the next
  76. sound no).
  77.  
  78. ADSR L P SPEEDS L F V! V2 ## FX
  79. 00AE 0 0 000000 0 0 01 02 07 08
  80. 07 21 00
  81. 08 21 04
  82. 09 21 07
  83. 0A 21 0C
  84. 0B 94 00 - Not hard is it ;o) ?
  85.  
  86. Next we'll introduce some more
  87. instruments, for you to try:
  88.  
  89. Drums and Bass
  90. This chapter takes a look at creating
  91. your own C64 drum kit. Let's get back
  92. to the sound editor and try as
  93. follows.
  94.  
  95. ADSR L P SPEEDS L F V! V2 ## FX
  96. 00E8 0 8 000000 0 0 01 02 0C 01
  97.  
  98. Now edit the table below:
  99.  
  100. 0C 81 FF ;Drum 1
  101. 0D 81 FF
  102. 0E 41 0C
  103. 0F 41 0A
  104. 10 41 02
  105. 11 91 00 ;End
  106.  
  107. Now let's make cymbals:
  108.  
  109. ADSR L P SPEEDS L F V! V2 ## FX
  110. 00E9 0 0 000000 0 2 00 00 12 A1
  111.  
  112. 12 81 FF
  113. 13 91 00
  114.  
  115. Enter the filter editor and enter in
  116. table 2. the following:
  117.  
  118. R T ## RT ST S1 S2 S3
  119. 0 4 A0 00 00 FF 00 00
  120.  
  121. Now let's create drum 2:
  122.  
  123. ADSR L P SPEEDS L F V! V2 ## FX
  124. 00A9 0 8 000000 0 0 01 02 14 01
  125. 14 81 7f
  126. 15 41 0E
  127. 16 41 0C
  128. 17 41 0A
  129. 18 41 08
  130. 19 81 55
  131. 1A 91 00
  132.  
  133. Now test all your drums.
  134.  
  135. Writing your First Tunes
  136.  
  137. Let us take a look at what we have
  138. done so far. Well, we played around
  139. with sounds and filters, now we shall
  140. start writing a little ditty. For a
  141. start off, hop on to the track editor,
  142. by cancelling the main menu (pressing
  143. BACk ARROW again). Now move into track
  144. editor. Pressing 'C= and E' sets STOP
  145. and 'SHIFT + E' puts end and loops to
  146. the very first sector.
  147.  
  148. Now go to track 1, highlight the
  149. sector at $00 and then press SHIFT &
  150. RETURN to enter the sector editor. Now
  151. do as follows in sector $00.
  152.  
  153. 00 DUR.06
  154. 01 SND.XX ;Use the sound number which
  155. first drum is
  156. 02 A-1
  157. 03 SND.YY ;Use the sound no. which are
  158. cymbals
  159. 04 A-1
  160. 05 SND.ZZ ;Second Drum
  161. 06 A-1
  162. 07 SND.YY ;Cymbals again
  163. 08 A-2
  164. 09 END!
  165.  
  166. Quick recap: 'C= and S' sets SND.xx,
  167. which indicates the sound number which
  168. you want to use, while 0-9 and SHIFT
  169. A-F sets the sound no. 'C= and 'D'
  170. sets DUR.XX, which is the duration.
  171. Yet again, use the same number, and
  172. letter keys to set the sound. '' sets
  173. a GATE (We'll look at this later), 'UP
  174. ARROW' copies the sector in to memory
  175. buffer, '@' pastes from memory buffer
  176. to current sector, 'SHIFT+X' sets
  177. SWITCH (Also will be looked at), while
  178. 'SHIFT+G' makes GLIDE. To place 'END',
  179. just press '='.
  180.  
  181. Let's edit SECTOR 1 to do a bit of
  182. music.
  183.  
  184. 00 SND.00
  185. 01 DUR.06
  186. 02 A-1
  187. 03 A-1
  188. 04 A-2
  189. 05 A-1
  190. 06 A-1
  191. 07 A-2
  192. 08 A-1
  193. 09 A-2
  194. 0A END!
  195.  
  196. Now press F1 to listen to what you
  197. have done so far. There we are, your
  198. first tune done on DMC V4.0. Easy huh?
  199.  
  200.  
  201. Introducing Volume Control
  202. Not much will be happening this time,
  203. but we will be taking a look at some
  204. really cool things that can be done,
  205. when using the DMC V4.0 player. Well,
  206. i talked about installing a gate, I
  207. also talked about installing, what
  208. now? Ah yes, well take a look at the
  209. volume feature. The volume feature can
  210. do amazing effects with your sounds.
  211. Especially when you are using the
  212. block/sequence editor. For example,
  213. you can do a sort of fading effect to
  214. your note. Why not try this:
  215.  
  216. SECTOR 00:
  217. 00 SND.XX
  218. 01 DUR.08
  219. 02 VOL.0E
  220. 03 A-4
  221. 04 VOL.0D
  222. 05 A-4
  223. 06 VOL.0C
  224. 07 A-4
  225. 08 VOL.0B
  226. 09 A-4
  227. 0A VOL.0A
  228. 0B A-4
  229. 0C VOL.09
  230. 0D A-4
  231. 0E VOL.08
  232. 0F A-4
  233. 10 VOL.07
  234. 11 A-4
  235. 12 VOL.06
  236. 13 A-4
  237. 14 VOL.05
  238. 15 A-4
  239. 16 VOL.04
  240. 17 A-4
  241. 18 VOL.03
  242. 19 A-4
  243. 1A VOL.02
  244. 1B A-4
  245. 1C VOL.01
  246. 1D A-4
  247. 1E END!
  248.  
  249. However the problem is, if you jump
  250. from one sector to another. Let us say
  251. for example this is your first sector,
  252. and you would like to edit your second
  253. sector, then you would need to set a
  254. volume, else the second sector will
  255. use the last volume which was used and
  256. we dont really want that do we? Still;
  257. not to worry. We can sort this problem
  258. out by going to the next sector and
  259. set the correct volume or we set the
  260. volume back to 00. Okay then, lets try
  261. this:
  262.  
  263. SECTOR 01:
  264. 00 SND.XX
  265. 01 DUR.08
  266. 02 VOL.0E
  267. 03 A-2
  268. 04 ------
  269. 05 ------
  270. 06 ------
  271. 07 ------
  272. 08 ------
  273. 09 ------
  274. 0A ------
  275. 0B ------
  276. 0C ------
  277. 0D ------
  278. 0E ------
  279. 0F ------
  280. 10 ------
  281. 11 ------
  282. 12 END!
  283.  
  284. Now combine these in track form. like
  285. this:
  286.  
  287. TRACK 1TRACK 2TRACK 3
  288. 00 - 0000 STOP00 STOP
  289. 01 - 0101 - 0001 - 00
  290. 02 STOP02 - 0002 - 00
  291.  
  292. Okay, now press F1 to play the small
  293. sample you created. If you find that
  294. there are no sounds coming through
  295. then the reason behind this is because
  296. you have not loaded or created any
  297. sounds. Else, you should hear the
  298. sample more easily.
  299.  
  300. Now then, heres a challenge for you.
  301. Try and make the volume go UP instead
  302. of down. Heh, heh. I dont know if
  303. you'll manage this, but why not give
  304. it a go.
  305.  
  306.  
  307. Introducing Filter Control
  308. Okay, now for something new. We are
  309. going to play around with filtered
  310. effects coming through with your
  311. sounds. When I was writing a piece of
  312. music for Commodore Scene's game
  313. Stealth 4, I originally used the DMC
  314. player to do the superb effects, but
  315. sadly I could not use the tune in the
  316. game, due to part of the player's
  317. routines being snipped off. So, I used
  318. the Dutch USA Team Music Assembler.
  319. But I still love the DMC player.
  320. Anyway, let's create a few filters and
  321. import them into some of our sounds
  322. shall we? Yeah, why not. We'll do at
  323. least six or seven filters for this
  324. bit. Before we do this initialize
  325. everything so that we have no sounds
  326. at all. Go to the sound editor and
  327. then enter as follows:
  328.  
  329. SOUND 00:
  330.  
  331. ADSR L P SPEEDS L F V1 V2 ##
  332. 00AA 0 0 000000 0 0 00 00 00
  333. FX
  334. 20
  335.  
  336. Once you have done the sound data, go
  337. to ## and then press Shift + Return
  338. and edit the sound data tables.
  339.  
  340. 00 21 00
  341. 01 91 00
  342.  
  343. When you have done your sounds, press
  344. Shift + Return to go back to the sound
  345. editor. Now we are going to the filter
  346. editor. Press the Back Arrow key, and
  347. highlight Filter Editor with your
  348. cursor keys. Once you have done this,
  349. select the first filter and do as
  350. follows:
  351.  
  352. Filter 0:
  353.  
  354. R T ## RT ST S1 S2 S3
  355. F 1 08 00 08 00 00 00
  356.  
  357. Filter 1:
  358.  
  359. R T ## RT ST S1 S2 S3
  360. F 1 18 00 18 00 00 00
  361.  
  362. Filter 2:
  363.  
  364. R T ## RT ST S1 S2 S3
  365. F 1 28 00 28 00 00 00
  366.  
  367. Filter 3:
  368.  
  369. R T ## RT ST S1 S2 S3
  370. F 1 38 00 38 00 00 00
  371.  
  372. Filter 4:
  373.  
  374. R T ## RT ST S1 S2 S3
  375. F 1 48 00 48 00 00 00
  376.  
  377. Filter 5:
  378.  
  379. R T ## RT ST S1 S2 S3
  380. F 1 58 00 58 00 00 00
  381.  
  382. Filter 6:
  383.  
  384. R T ## RT ST S1 S2 S3
  385. F 1 68 00 68 00 00 00
  386.  
  387. Now, go back to the sound editor and
  388. copy each sound by pressing Up Arrow
  389. and paste to the next sound and change
  390. the value of F. This is because F
  391. represents the filter number your C64
  392. tries to read.
  393.  
  394. Now let's go back to the track editor
  395. and play around with the filtered
  396. sounds. First of all, in your track
  397. editor, do as follows:
  398.  
  399. TRACK 1TRACK 2TRACK 3
  400. 00 - 0000 STOP00 STOP
  401. 01 STOP01 - 0001 - 00
  402.  
  403. Now enter the sector editor and do as
  404. follows:
  405.  
  406. SECTOR 00:
  407.  
  408. 00 DUR.03
  409. 01 SND.00
  410. 02 C-1
  411. 03 C-2
  412. 04 C-2
  413. 05 C-1
  414. 06 C-2
  415. 07 C-2
  416. 08 C-1
  417. 09 C-2
  418. 0A SND.01
  419. 0B C-1
  420. 0C C-2
  421. 0D C-2
  422. 0E C-1
  423. 0F C-2
  424. 10 C-2
  425. 11 C-1
  426. 12 C-2
  427.  
  428. And keep repeating until you have done
  429. SND.06, then go back down again to
  430. SND.01. Well basically that is all Ill
  431. be leaving with you with in this
  432. chapter. Just play around with DMC.
  433.  
  434. 2.7Packer DMC 4 and DMC 7 have an
  435. integrated packer (inside). If you
  436. store your tune, the tune will be
  437. relocated to $1000 and packed. There
  438. is no need for any external packer.
  439.  
  440. 2.8Relocator Often if you do a demo or
  441. a game, it's necessary to relocate
  442. your tune(s) to another position in
  443. memory. DMC 4 and 7 sets the init
  444. routine automatically to $1000. The
  445. play routine will start at $1003 for
  446. normal or at $1006 for multiple player
  447. settings.Check out several relocator
  448. tools, which are free in internet to
  449. relocate DMC 4 tunes. Watch out for
  450. the right version too. DMC 7 hasn't
  451. any Relocator tool, but Hoeppie (a
  452. member of forum64) is still working on
  453. it (in 2007 ;)). So watch out for next
  454. releases.
  455.  
  456. =====
  457.  
  458.